import request from '@/utils/request';

const URL = '/dataExport';
// 测试接口
const ExportDataAPI = {

    exportFile (params?: any) {
        return request<any> ({
            url: `${URL}/exportToCsv`,
            method: 'POST',
            headers: {
                'Content-Type': "application/json;charset=UTF-8"
            },
            responseType: 'blob',
            data: params,
        })
    },
}

export default ExportDataAPI;
